#define _CRT_SECURE_NO_WARNINGS
#include"Class.h"

int  main()
{
    Complex  cm1(1.5, -2.3), cm2(3.3, 8.7), cm3, cm4;
    cm3 = cm1.neg();
    cm3.print();
    cm4 = cm1.add(cm2);
    cm4.print();
    cm2.add_assignment(cm1);
    cm2.print();
    return  0;
}


//int  main()
//{
//    int  x, y;
//    cin >> x >> y;
//
//    Point::showCount();
//    Point  a(x, y);
//    cout << "Point  A:  " << a.getX() << "," << a.getY() << endl;
//    Point::showCount();
//
//    Point  b(a);
//    cout << "Point  B:  " << b.getX() << "," << b.getY() << endl;
//    Point::showCount();
//
//    Point  c;
//    cout << "Point  C:  " << c.getX() << "," << c.getY() << endl;
//    Point::showCount();
//
//    Point  d(x);
//    cout << "Point  D:  " << d.getX() << "," << d.getY() << endl;
//    Point::showCount();
//    return  0;
//}